<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>论坛后台管理</title>
    <link rel="icon" th:href="@{/web/icon.ico}" type="image/x-icon">
    <link rel="stylesheet" href="http://123.207.19.115:8888/layui/css/layui.css">
    <link rel="stylesheet" href="http://123.207.19.115:8888/ztree/css/zTreeStyle/zTreeStyle.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin" id="app">
    <div class="layui-header">
        <div class="layui-logo" id = "title">

        </div>
        <!-- 头部区域（可配合layui已有的水平导航） -->

        <!--<ul class="layui-nav layui-layout-left">-->

            <!--<li class="layui-nav-item"><a th:href="@{/home/index}">论坛前台</a></li>-->
        <!--</ul>-->
        <input type="hidden" th:value="${session.id}" id="id">
        <input type="hidden" th:value="${session.role}" id="role">
        <ul class="layui-nav layui-layout-right">

            <li class="layui-nav-item"><span v-text="time"></span></li>
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
                    <span th:text="${session.nickname}"/>
                </a>
                <dl class="layui-nav-child">
                    <dd><a onclick="user.getUserInfoAndShow()">基本资料</a></dd>
                    <dd><a onclick="user.changePassword()">密码管理</a></dd>
                    <dd><a onclick="user.adminLogout()">注销</a></dd>
                </dl>
            </li>

        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test" id="menu">

            </ul>

        </div>
    </div>

    <div class="layui-body" id = "content" v-html="content">
        <!-- 内容主体区域 -->

    </div>

    <div class="layui-footer footer footer-doc">
        <!-- 底部固定区域 -->
        <center>
            <div class="layui-main" >
                <p>
                    <a style="font-size:16px;">@2018.04.28 17:20:13 lentong Finish writing         </a>
                    <a href="https://gitee.com/wanglinli955/tourism-admin" target="_blank" rel="nofollow" style="font-size:18px;">码云</a>
                </p>
            </div>
        </center>


    </div>
</div>
<script src="http://123.207.19.115:8888/layui/layui.js"></script>
<script src="http://123.207.19.115:8888/vue/vue.js"></script>
<script src="http://123.207.19.115:8888/vue/axios.js"></script>
<script src="http://123.207.19.115:8888/jquery/jquery-3.3.1.min.js"></script>
<script src="http://123.207.19.115:8888/ztree/js/jquery.ztree.all-3.5.js"></script>
<script th:src="@{/tribune.js}"></script>
<script th:src="@{/content_admin.js}"></script>
<script th:src="@{/user.js}"></script>
<script th:src="@{/role.js}"></script>
<script th:src="@{/notice.js}"></script>
<script th:src="@{/post.js}"></script>
<script th:src="@{/forum.js}"></script>
<script th:src="@{/seniority.js}"></script>
<script th:src="@{/config.js}"></script>
<script th:src="@{/menu.js}"></script>
<script th:src="@{/echarts.min.js}"></script>
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;
        laydate.render({
            elem: '#test-n1'
            ,position: 'static'
            ,calendar: true
        });
    });
</script>
<script>

    var index = new Vue({
        el: '#app',
        data: {
            time: new Date().toLocaleTimeString(),
            date: new Date().toDateString()
        },

        methods: {
            //页面时间
            getTime: function () {
                this.time = new Date().toLocaleTimeString();
                setTimeout(this.getTime,1000);
            },

        }

    });
//    function getTitleTime () {
//
//        setTimeout(this.getTitleTime,2000);
//    }
//    getTitleTime();
    user.getMenu();
    tribune.getNoticeAll();
    tribune.getReportUserSum();
    tribune.getReportPostSum();
    tribune.getTitle();
    index.getTime();
</script>
</body>
</html>